//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.itheima.pinda.authority.dto.test;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
import com.itheima.pinda.authority.entity.core.Org;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DateDTO implements Serializable {
    private Date date;
    private LocalDateTime dt;
    private LocalDate d;
    @JsonFormat(
            shape = Shape.STRING
    )
    private LocalTime t;

    public static void main(String[] args) {
        List<Org> list = new ArrayList();
        list.add(Org.builder().id(9223372036854775807L).build());
        list.add(Org.builder().id(2L).build());
        String[] ids = (String[])list.stream().map((org) -> {
            return String.valueOf(org.getId());
        }).toArray((x$0) -> {
            return new String[x$0];
        });
        String[] var3 = ids;
        int var4 = ids.length;

        for(int var5 = 0; var5 < var4; ++var5) {
            String id = var3[var5];
            System.out.println(id);
        }

    }

    public DateDTO() {
    }

    public Date getDate() {
        return this.date;
    }

    public LocalDateTime getDt() {
        return this.dt;
    }

    public LocalDate getD() {
        return this.d;
    }

    public LocalTime getT() {
        return this.t;
    }

    public void setDate(final Date date) {
        this.date = date;
    }

    public void setDt(final LocalDateTime dt) {
        this.dt = dt;
    }

    public void setD(final LocalDate d) {
        this.d = d;
    }

    public void setT(final LocalTime t) {
        this.t = t;
    }

    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof DateDTO)) {
            return false;
        } else {
            DateDTO other = (DateDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    Object this$date = this.getDate();
                    Object other$date = other.getDate();
                    if (this$date == null) {
                        if (other$date == null) {
                            break label59;
                        }
                    } else if (this$date.equals(other$date)) {
                        break label59;
                    }

                    return false;
                }

                Object this$dt = this.getDt();
                Object other$dt = other.getDt();
                if (this$dt == null) {
                    if (other$dt != null) {
                        return false;
                    }
                } else if (!this$dt.equals(other$dt)) {
                    return false;
                }

                Object this$d = this.getD();
                Object other$d = other.getD();
                if (this$d == null) {
                    if (other$d != null) {
                        return false;
                    }
                } else if (!this$d.equals(other$d)) {
                    return false;
                }

                Object this$t = this.getT();
                Object other$t = other.getT();
                if (this$t == null) {
                    if (other$t != null) {
                        return false;
                    }
                } else if (!this$t.equals(other$t)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof DateDTO;
    }

    @Override
    public int hashCode() {
        /*int PRIME = true;*/
        int result = 1;
        Object $date = this.getDate();
        result = result * 59 + ($date == null ? 43 : $date.hashCode());
        Object $dt = this.getDt();
        result = result * 59 + ($dt == null ? 43 : $dt.hashCode());
        Object $d = this.getD();
        result = result * 59 + ($d == null ? 43 : $d.hashCode());
        Object $t = this.getT();
        result = result * 59 + ($t == null ? 43 : $t.hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "DateDTO(date=" + this.getDate() + ", dt=" + this.getDt() + ", d=" + this.getD() + ", t=" + this.getT() + ")";
    }
}
